<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class AlipayLog extends BaseModel
{
    protected $table = 'alipay_log';

    const CREATED_AT = 'add_time';
    const UPDATED_AT = null;

    protected $dateFormat = 'U';

    protected $fillable = [
        'content',
    ];

    /**
     * 获取content进行unicode解码后内容
     * content_decode
     */
    public function getContentDecodeAttribute()
    {
        return unicodedecode($this->content);
    }
}
